﻿using SocketTool.Model.DataModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SocketTool.Com
{
    public interface ISocket
    {
        void Send(string msg, int count);
        bool Open();
        void Close();
        void SetCustomerProtocol(CustomerProtocol protocol);

        event EventHandler<Args.ConnectionArgs> SocketConnectionChangedEvent;

        event EventHandler<Args.ReceiveMessageArgs> ReceiveMessageEvent;
    }
}
